import {SourceView} from "./source_view";
import {SelectionModel, TextModel} from "../models";
import {ViewMode} from "../types";

export class ViewProvider {
    provide(viewMode: ViewMode, textModel: TextModel, selectionModel: SelectionModel, viewContainer: HTMLElement) {
        switch (viewMode) {
            case ViewMode.source:
                return new SourceView(textModel, selectionModel, viewContainer)
                break
            case ViewMode.source_and_preview:
                break
            case ViewMode.render:
                break
        }
    }
}